package com.lz.kunkun.messageservice.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.lz.kunkun.messageservice.model.SysUser;

/**
 * Hello world!
 *
 */
public interface SysUserMapper
{
List<SysUser> getAllSysUsers();

SysUser login(@Param("name") String userName, @Param("password") String password);

int updateUserByUserId(@Param("userId") Integer userId, @Param("name") String name, @Param("phoneNumber") String phoneNumber, @Param("password") String password, @Param("loginName") String loginName, @Param("email") String email, @Param("sex") Integer sex,
		@Param("idCard") String idCard, @Param("address") String address, @Param("age") Integer age, @Param("enable") Integer enable, @Param("userType") Integer userType, @Param("amount") Integer amount);

void updateUserAmount(@Param("userId")Integer userId, @Param("amount")Integer amount);

SysUser getUserById(@Param("userId")Integer userId);
}
